function gets(pageNum) {
    var a=$("#dinumber").val();
    var b=$("#cname").val();
    var c=$("#cengci").val();
    var d=$("#lefPprice").val();
    var e=$("#rightPrice").val();
    var f=$("#hospital").val();
    var pageN = pageNum;

    $.ajax({
            url: '/myspringboot/purchasement/findDI',
            type: 'post',
            dataType: "json",
            data:{
                dinumber:a,
                cname:b,
                cengci:c,
                lefPprice:d,
                rightPrice:e,
                hospital:f,
                pageNum:pageN,
            },

            success:function(result){
                var result = result.data;
                yibu(result.pages,result.pageNum);
                var list = result.list;
                $(".a").empty();
                for (var i = 0; i < list.length; i++){
                    // var li =list[i];
                    var id=list[i].poId;
                    var hname = list[i].hospital.hName;
                    var Number = list[i].poNumber;
                    var poName = list[i].poName;
                    var poSubmissionTime = list[i].poSubmissionTime;
                    var poSupplyTime = list[i].poSupplyTime;
                    var poCreateTime = list[i].poCreateTime;
                    var poSubmissionTime1 = list[i].poSubmissionTime;
                    var poState = list[i].poState;
                    var poAuditTime = list[i].poAuditTime;

                    var $tr = '<tr>'+
                        '<td>'+hname+'</td>'+
                        '<td>'+Number+'</td>'+
                        '<td>'+poName+'</td>'+
                        '<td>'+poSubmissionTime+'</td>'+
                        '<td>'+poSupplyTime+'</td>'+
                        '<td>'+poCreateTime+'</td>'+
                        '<td>'+poSubmissionTime1+'</td>'+
                        '<td>'+poAuditTime+'</td>'+
                        '<td>'+poState+'</td>'+
                        '<td>'+'<a href="../../pages/02/drug06.html?'+id+'">查看</a>'+'</td>'+
                        '<td>'+'<button value="'+ id+'" onclick="undata(this.value)" data-toggle="modal" data-target="#xiugai">修改</button>'+'</td>'+
                        '<td>'+'<a href="/myspringboot/purchasement/delectById?id='+ id+'">删除</a>'+'</td>'+
                        '</tr>'
                    $(".a").append($tr);
                }
            }
        }
    )
}